package net.yihang.miaosha.dao;

import net.yihang.miaosha.domain.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface OrderDao {


    @Insert("insert into order_info(user_id,goods_id,goods_name,goods_count,goods_price,order_channel,status,create_date) values(#{userId},#{goodsId},#{goodsName},#{goodsCount},#{goodsPrice},#{orderChannel},#{status},#{createDate})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    public void saveOrder(Order order);
}
